package com.example.mynetwork2.mvpdesign.bean;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class Fanyi {

    /**
     * translation : ["世界"]
     * basic : {"us-phonetic":"wɜːrld","phonetic":"wɜːld","uk-phonetic":"wɜːld","explains":["n. 地球，天下（the world）；（尤指可能或确有生命存在的）星球，天体；（某地区、某类人及事物组成的）世界；人类社会，社会生活；（人们活动的）领域，界，圈子； 某领域的一切事物，自然界；人生，生活圈子，阅历； 人世，今生，来世；生活领域；尘世，世俗，世事（the world）；社会地位；活的状态；大不相同；（尤指某人描述或想象的）地方，情景；（有某种特色的）地方，（某种生活的）世界；<非正式>大量，无数；一切，重要性（the world）","adj. （人物）举足轻重的，世界闻名的；所有国家的，世界（性）的；环球的"]}
     * query : world
     * errorCode : 0
     * web : [{"value":["世界","界","天下","世上"],"key":"World"},{"value":["世界银行","天下银行","天下银止"],"key":"World Bank"},{"value":["新大陆","新世界连锁酒店","新的世界"],"key":"New World"}]
     */

    private BasicBean basic;
    private String query;
    private int errorCode;
    private List<String> translation;
    private List<WebBean> web;

    public BasicBean getBasic() {
        return basic;
    }

    public void setBasic(BasicBean basic) {
        this.basic = basic;
    }

    public String getQuery() {
        return query;
    }

    public void setQuery(String query) {
        this.query = query;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public List<String> getTranslation() {
        return translation;
    }

    public void setTranslation(List<String> translation) {
        this.translation = translation;
    }

    public List<WebBean> getWeb() {
        return web;
    }

    public void setWeb(List<WebBean> web) {
        this.web = web;
    }

    public static class BasicBean {
        /**
         * us-phonetic : wɜːrld
         * phonetic : wɜːld
         * uk-phonetic : wɜːld
         * explains : ["n. 地球，天下（the world）；（尤指可能或确有生命存在的）星球，天体；（某地区、某类人及事物组成的）世界；人类社会，社会生活；（人们活动的）领域，界，圈子； 某领域的一切事物，自然界；人生，生活圈子，阅历； 人世，今生，来世；生活领域；尘世，世俗，世事（the world）；社会地位；活的状态；大不相同；（尤指某人描述或想象的）地方，情景；（有某种特色的）地方，（某种生活的）世界；<非正式>大量，无数；一切，重要性（the world）","adj. （人物）举足轻重的，世界闻名的；所有国家的，世界（性）的；环球的"]
         */

        @SerializedName("us-phonetic")
        private String usphonetic;
        private String phonetic;
        @SerializedName("uk-phonetic")
        private String ukphonetic;
        private List<String> explains;

        public String getUsphonetic() {
            return usphonetic;
        }

        public void setUsphonetic(String usphonetic) {
            this.usphonetic = usphonetic;
        }

        public String getPhonetic() {
            return phonetic;
        }

        public void setPhonetic(String phonetic) {
            this.phonetic = phonetic;
        }

        public String getUkphonetic() {
            return ukphonetic;
        }

        public void setUkphonetic(String ukphonetic) {
            this.ukphonetic = ukphonetic;
        }

        public List<String> getExplains() {
            return explains;
        }

        public void setExplains(List<String> explains) {
            this.explains = explains;
        }
    }

    public static class WebBean {
        /**
         * value : ["世界","界","天下","世上"]
         * key : World
         */

        private String key;
        private List<String> value;

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public List<String> getValue() {
            return value;
        }

        public void setValue(List<String> value) {
            this.value = value;
        }
    }
}